import java.util.Scanner;

public class Ketang5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入2个数");
        int n=scanner.nextInt();
        int m=scanner.nextInt();
       printStar(m,n);
        System.out.println("");

    }

    private static void printStar(int m, int n) {for (int i=1;i<=n;i++){
        for (int j=1;j<=m;j++){
            System.out.print("*");
        }
        System.out.println();
    }
    }

}
